package com.graduation.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.springbootinit.model.entity.ActivityPart.PointsRecord;

import java.util.List;

public interface PointsRecordService extends IService<PointsRecord> {
    
    /**
     * 获取用户积分变动记录
     */
    Page<PointsRecord> getUserPointsRecords(Long userId, int pageNum, int pageSize);
    
    /**
     * 获取用户最近的积分变动记录
     */
    List<PointsRecord> getRecentPointsRecords(Long userId, int limit);
    
    /**
     * 创建积分变动记录
     */
    void createPointsRecord(Long userId, Integer points, Integer type, String description);
} 